const openBluetoothAdapter = (mode) => {
  return new Promise((resolve, reject) => {
    wx.openBluetoothAdapter({
			mode: mode,
      success: (result) => {
        resolve(result);
      },
      fail: (err) => {
        resolve(err);
      },
      complete: () => {}
    });
  });
};
const createBLEPeripheralServer = ()=>{
  return new Promise((resolve, reject) => {
    wx.createBLEPeripheralServer({
      success: (result) => {
        resolve(result);
      },
      fail: (err) => {
        resolve(err);
      },
      complete: () => {}
    });
  });	
}
export {
  openBluetoothAdapter,
	createBLEPeripheralServer
}
